#!/bin/bash

# dreamy-trac - Automatically install and manage Trac on DreamHost
# Author: Petar Maric <http://www.petarmaric.com>
# Licence: BSD
#
# DON'T CHANGE THIS FILE UNLESS YOU KNOW WHAT YOU'RE DOING!

# Abort on any error
set -e

# Auto-detect Python version
PYTHON_VERSION=`python -c "import sys; print sys.version[:3]"`

# Root directory for all user-specific libraries and programs
PKG_DIR=$HOME/packages


echo "

##############################################################################
#
# Added by dreamy-trac
#
export PYTHONPATH=\"${PKG_DIR}/lib/python${PYTHON_VERSION}/site-packages\"
export LD_LIBRARY_PATH=\"${PKG_DIR}/lib\"
export PATH=\"${PKG_DIR}/bin:\$PATH\"
##############################################################################

" >> ~/.bash_profile


echo "To continue installation run these commands from the command prompt:
    source ~/.bash_profile
    ./install.sh"
